/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.platform.entity.MerchantRate;
import com.wealth.platform.repository.MerchantRateDao;
import com.wealth.platform.service.IMerchantRateService;

import iaas.service.impl.BaseServiceImpl;

/**
 * @author chan
 */
 @Component
public class MerchantRateServiceImpl extends BaseServiceImpl<MerchantRate> implements IMerchantRateService{

	@Autowired
	private MerchantRateDao merchantRateDao;
	@Override
	public MerchantRate findMerchantRateByCorpId(Long corpId) {
		return merchantRateDao.findMerchantRateByCorpId(corpId);
	}
	@Override
	public MerchantRate findMerchantRateByCorpIdAndStatus(Long cropId,
			Integer status) {
		return merchantRateDao.findMerchantRateByCorpIdAndStatus(cropId,status);
	}


}


